﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AusProject
{
    public partial class FormTickBoxOptions : Form
    {
        public FormTickBoxOptions()
        {
            InitializeComponent();
        }

        public string Option1Label
        {
            get { return txtOption1Label.Text; }
            set
            {
                txtOption1Label.Text = value;
            }
        }

        public string Option2Label
        {
            get { return txtOption2Label.Text; }
            set
            {
                txtOption2Label.Text = value;
            }
        }

        private void txtOption1Label_Enter(object sender, EventArgs e)
        {
            txtOption1Label.SelectAll();
        }

        private void txtOption2Label_Enter(object sender, EventArgs e)
        {
            txtOption2Label.SelectAll();
        }


        private bool hasAccepted = false;

        public bool HasAccepted
        {
            get { return hasAccepted; }
            set { hasAccepted = value; }
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            hasAccepted = true;
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            hasAccepted = false;
            this.Close();
        }
    }
}
